home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20010306-20010921
/
000128_jaltman@watsun.cc.columbia.edu_Fri May 11 09:40:41 EDT 2001.msg
< prev
next >
Wrap
Text File
|
2001-09-20
|
2KB
|
43 lines
Article: 12418 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!watsun.cc.columbia.edu!jaltman
From: jaltman@watsun.cc.columbia.edu (Jeffrey Altman)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Too many files for 'synchron.ksc'
Date: 11 May 2001 11:17:37 GMT
Organization: Columbia University
Lines: 26
Message-ID: <9dghoh$bng$1@newsmaster.cc.columbia.edu>
References: <9dckn1$kgi$1@samba.rahul.net> <9dfc68$7k7$1@samba.rahul.net> <9dfclp$s6l$1@newsmaster.cc.columbia.edu> <9dfr64$agp$1@samba.rahul.net>
NNTP-Posting-Host: watsun.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 989579857 12016 128.59.39.2 (11 May 2001 11:17:37 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 11 May 2001 11:17:37 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:12418
In article <9dfr64$agp$1@samba.rahul.net>, <dold@02.usenet.us.com> wrote:
: Jeffrey Altman <jaltman@watsun.cc.columbia.edu> wrote:
: : Yes. Its the same code. Increasing the value of SSPACE appears
: : to be the correct setting. I think we can handle changing the code
: : to support a realloc() in a future release.
:
: I added a loop at the first directory level. I don't want to increase the
: static buffer beyond 500K ;-)
:
: I did add a realloc, with an initial malloc of 10k, wrapped like the
: fgen(?) a little above. That gathered all of the names, but gave me a core
: dump during the transmission phase. I could see from the debug that I had
: called my realloc successfully at least once. I should have verified that
: it was called several times.
: The 5m static did a complete transfer, but that's so ungraceful.
The reason for the core dump is because realloc() can return a block
of memory that is different than the original source block. If this
happens then all of the work pointers which point within the original
block need to be moved to refer to the new block. Otherwise, you will
get an exception.
Jeffrey Altman * Sr.Software Designer C-Kermit 7.1 Alpha available
The Kermit Project @ Columbia University includes Secure Telnet and FTP
http://www.kermit-project.org/ using Kerberos, SRP, and
kermit-support@kermit-project.org OpenSSL. SSH soon to follow.